package zuoye01;

import java.util.HashSet;
import java.util.Scanner;
import java.util.Set;

public class Test02 {
	public static void main(String[] args) {
		Scanner input=new Scanner(System.in);
		Set set=new HashSet();
		System.out.println("请输入十个数字：");
		for (int i = 0; i < 10; i++) {
			set.add(input.next());
		}
		for (Object obj : set) {
			System.out.println(obj);
		}
		System.out.println(set);
	}
}
